package com.lx.cloud.feign;


import com.lx.cloud.feign.hystrix.TestFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
  * @Description
  * @Author ymy
  * @Date  2021/2/20 13:45
 */
@FeignClient(value = "cloud-service",fallback = TestFeignHystrix.class)
@Component
public interface TestFeign {

    @GetMapping(value = "/test")
     String test(@RequestParam("name")String name);
}
